import { http } from "@/utils/http";

type ResultTable = {
  total?: number;
  data?: Array<any>;
};

//消耗管理 查询表单
export const consumptionqueryConsumptionList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/machine/consumption/queryConsumptionList`, {
    data
  });
};

//消耗管理 查询详情
export const consumptionqueryDetail = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/machine/consumption/queryDetail`, {
    data
  });
};

//消耗管理 物料列表
export const consumptionqueryMaterialList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/machine/consumption/queryMaterialList`, {
    data
  });
};

//消耗管理 系统列表
export const consumptionquerySystemList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/machine/consumption/querySystemList`, {
    data
  });
};
